/**
 * Created by Administrator on 2017/3/14.
 */
import {RouterModule, Routes} from "@angular/router";
import {NgModule} from "@angular/core";
import {LoginComponent} from "./login/login.component";

const routes: Routes = [
  {path: '', redirectTo: '/login', pathMatch: 'full'},
  {path: 'login', component: LoginComponent},
  // {path: '**', component: PageNotFoundComponent},
  {path: 'home', loadChildren: './home/home.module#HomeModule'}
];
@NgModule({
  imports: [
    RouterModule.forRoot(
      routes
    ),
  ],
  exports: [
    RouterModule
  ]
})
export class AppRoutingModule {
}
